using MicroMsg.Resource.@string;
using MicroMsg.UI.UserContrl;
using MicroMsg.UI.Util;
using System;
using System.Diagnostics;
using System.Windows;
using System.Windows.Controls;
namespace MicroMsg.Source.UI.QQFriends
{
	public class GoBindQQ : BasePage
	{
		private object[] nameObj;
		internal Grid LayoutRoot;
		internal panelTitle2Line panelTitle;
		internal StackPanel ContentPanel;
		internal TextBlock textBlock1;
		internal TextBlock textBlock2;
		internal Button bindButton;
		private bool _contentLoaded;
		public GoBindQQ()
		{
			this.InitializeComponent();
		}
		protected override void OnPageIn(object[] object_0)
		{
			if (object_0 != null)
			{
				this.nameObj = object_0;
				string text = object_0[0] as string;
				if (text == "setting")
				{
					this.panelTitle.strTitle = strings.COM_Setting;
				}
			}
			this.panelTitle.strSecondTitle = strings.BindQQ_View_Title;
		}
		private void btnBind_Click(object sender, RoutedEventArgs e)
		{
			MMMessageBox mMMessageBox = MMMessageBox.Show(strings.BindQQ_View_Title, strings.BindQQ_Alert_Content, true, strings.COM_Confirm, strings.COM_Cancel);
			mMMessageBox.ReturnEvent = new DlgReturnEvent(this.SelectIfBindReturn);
		}
		public void SelectIfBindReturn(DlgReturnEventArg dlgReturnEventArg_0)
		{
			switch (MMMessageBox.GetUserClickResult(dlgReturnEventArg_0))
			{
			case 0:
				base.GoToPage("/Source/UI/QQFriends/BindQQ.xaml", this.nameObj, false);
				break;
			case 1:
				break;
			default:
				return;
			}
		}
		[DebuggerNonUserCode]
		public void InitializeComponent()
		{
			if (this._contentLoaded)
			{
				return;
			}
			this._contentLoaded = true;
			Application.LoadComponent(this, new Uri("/MicroMsg;component/Source/UI/QQFriends/GoBindQQ.xaml", 2));
			this.LayoutRoot = (Grid)base.FindName("LayoutRoot");
			this.panelTitle = (panelTitle2Line)base.FindName("panelTitle");
			this.ContentPanel = (StackPanel)base.FindName("ContentPanel");
			this.textBlock1 = (TextBlock)base.FindName("textBlock1");
			this.textBlock2 = (TextBlock)base.FindName("textBlock2");
			this.bindButton = (Button)base.FindName("bindButton");
		}
	}
}
